import request from '@/utils/request'

// 查询TravelNode列表
export function loadDataList(query) {
	return request({
		url: '/travelNode/loadDataList',
		method: 'get',
		params: query
	})
}
// 新增TravelNode
export function addTravelNode(data) {
	return request({
		url: '/travelNode/add',
		method: 'post',
		data: data
	})
}
//查询TravelNode详细
export function getTravelNodeById(travelNodeId) {
	return request({
		url: '/travelNode/getTravelNodeById/' + travelNodeId,
		method: 'get',
	})
}
//修改TravelNode
export function updateTravelNodeById(data,travelNodeId) {
	return request({
		url: '/travelNode/updateTravelNodeById/'+travelNodeId,
		method: 'put',
		data: data
	})
}
//删除TravelNode
export function delTravelNodeById(travelNodeId) {
	return request({
		url: '/travelNode/deleteTravelNodeById/'+travelNodeId,
		method: 'delete',
	})
}
